package com.zero.seata.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author zero
 */
@Data
@TableName("seata_good")
public class Good {

    @TableId(value = "g_id",type = IdType.AUTO)
    private Integer id;

    @TableField("g_name")
    private String name;

    @TableField("g_stock")
    private Integer stock;

    @TableField("g_price")
    private Double price;
}
